package com.pattern.objectcreator.builder;

/**
 * @author yangguanzan
 * @date 3/28/22
 * @description 负责产品的创建和每一部分的组装
 */
public class SimpleDecorationBuilder extends BaseDecorationBuilder {

    private BaseParlor parlor;

    public SimpleDecorationBuilder() {
        super();
        parlor = new SimpleParlor();
    }

    @Override
    public void buildTV() {
        this.parlor.setTv("小米电视和电视柜");
    }

    @Override
    public void buildSofa() {
        this.parlor.setSofa("真皮沙发");
    }

    @Override
    BaseParlor getResult() {
        return parlor;
    }

}
